package com.smartrobot.smartrobot.pagerHolder;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.smartrobot.smartrobot.R;

/**
 * Created by Administrator on 2015/1/14.
 */
public class MessageFragment extends Fragment implements BaseFragment{

    private boolean isFirst;

    public MessageFragment(){
        //调用父类
        super();

    }


    /**
     * 返回的view为滑动显示的view
     * @return
     */
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

        View v = inflater.inflate(R.layout.page_main_message,container,false);
        isFirst = true;

        Log.d("==========>","fragment 显示  "+ "消息");

        return v;
    }

    @Override
    public void init() {

        if(isFirst) {
            Log.d("==========>","fragment init  "+ "消息");
            isFirst = false;
        }
        
    }
}
